package Submarine;

import javax.swing.*;

public class airbox2 extends SeaObject{

    public airbox2(int x){ super(x,-30,1,30,30); }

    @Override
    public void move() {
        y+=speed;
    }

    public ImageIcon getImage(){
        return Images.AirBox2;
    }


    public boolean isOutofBounds(){return y>World.HEIGHT+this.height;}
}
